package com.czk.run;

import com.czk.utils.FileUtil;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/7/21 14:15
 */
public class HelloWorldTransformCore {
    public static void main(String[] args) {
        // 拿到地址
        byte[] bytes = FileUtil.readBytes("");
        // 创建classReader
        ClassReader cr = new ClassReader(bytes);
        // 构建classwriter
        ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);
        //（3）串连ClassVisitor
        int api = Opcodes.ASM9;
    }
}
